<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>
<%
    response.setHeader("Cache-Control", "no-store"); //HTTP 1.1    
    response.setHeader("Pragma", "no-cache"); //HTTP 1.0    
    response.setDateHeader("Expires", 0); //prevents caching at the proxy server    
%>
<!DOCTYPE html>
<html>
    <head>
        <title>HTML5 and jQuery Mobile</title>
        <link rel="stylesheet" href="${applicationScope.webApp.root}/css/jquery.mobile.min.css" />
        <script src="${applicationScope.webApp.root}/js/json2.js"></script>
        <script src="${applicationScope.webApp.root}/js/jquery.min.js"></script>
        <script src="${applicationScope.webApp.root}/js/jquery.mobile.min.js"></script>
    </head>
    <body id="body"> 
        <div data-role="page" id="page1"> 
            <div data-role="header">
                <a id='titleLeft' href="${applicationScope.webApp.root}/course?command=courseList&menuId=${requestScope.course.menu.id}" data-role="button" data-theme="a" data-icon="arrow-l">返回</a>
                <h1 id="title">用户信息</h1>
                <a id='titleRight' href="#" data-role="button" data-theme="a" data-icon="arrow-r" style="display:none;">菜单</a>
            </div>
            <div data-role="content"> 
                <div class="content-primary">
                    <form action="${applicationScope.webApp.root}/teacher" method="get">
                        <input type="hidden" name="command" value="save"/>
                        <input type="hidden" name="id" value="${requestScope.user.id}"/>
                        <div data-role="fieldcontain" class="ui-grid-a"> 
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 10px;"><label for="username">用户名:</label></div> 
                            <div class="ui-block-b" style="text-align: left;"><input type="text" name="username" value="${requestScope.user.username}"/></div> 
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 10px;"><label for="password">密码:</label></div> 
                            <div class="ui-block-b" style="text-align: left;"><input type="password" name="password" value=""/></div> 
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 10px;"><label for="confirm">确认密码:</label></div> 
                            <div class="ui-block-b" style="text-align: left;"><input type="password" name="confirm"/></div> 
                        </div>
                        <div style="text-align: center"><button type="submit" data-theme="a" data-inline="true">确定</button></div> 
                    </form>
                </div><!--/content-primary --> 
            </div><!-- /content --> 
        </div>
    </body>
</html>
